package com.example.test.advice.第一章_java开发中常用的方法和准则.建议12_避免用序列化类在构造函数中为不变量赋值;

import com.example.test.serial.SerializationUtils;

public class Deserialize {

    public static void main(String[] args) {
        PersonV1 personV1 =(PersonV1) SerializationUtils.readObject();
        System.out.println(personV1.name);
    }
}
